package com.hcb.tonguetiphealth.view;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.hcb.tonguetiphealth.manager.Exit;
import com.hcb.tonguetiphealth.widget.drinksbook.DrinksBookWidget;

public class DrinksBookActivity extends AbstractActivity {
	private RelativeLayout llBg;
	private Activity ctx;
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.winebook);
	    ctx = this;
        
	    llBg = (RelativeLayout)findViewById(R.id.llback);
	    llBg.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				setContentView(new DrinksBookWidget(ctx));
			}
		});
	    Exit.add(this);
	}

	@Override
	public void onBackPressed() {
		//super.onBackPressed();
		finish();
	}
}